package com.niguang.work.api.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.TableLogic;
import java.io.Serializable;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author chenliu
 * @since 2018-07-23
 */
@TableName("work_app_user_details")
public class AppUserDetails extends Model<AppUserDetails> {

    private static final long serialVersionUID = 1L;

    private Long id;
    /**
     * 用户编号
     */
    private Long userId;
    /**
     * 姓名
     */
    private String userName;
    /**
     * 头像
     */
    private String userPic;
    /**
     * 身份证有效期
     */
    private String userValidCard;
    /**
     * 出生年月
     */
    private String userBirthdayCard;
    /**
     * 用户年龄
     */
    private Integer age;
    /**
     * 签发机关
     */
    private String userSignOrg;
    /**
     * 身份证编号
     */
    private String userIdCard;
    /**
     * 身份证正面
     */
    private String idCardFront;
    /**
     * 身份证反面
     */
    private String idCardBack;
    /**
     * 手持身份证
     */
    private String idCardHandheld;
    /**
     * 地址id
     */
    private String areaId;
    /**
     * 地址
     */
    private String areaName;
    /**
     * 详细地址
     */
    private String addrDetails;
    /**
     * 培训信息 1-有 2-无
     */
    private String userTrain;
    /**
     * 文化程度
     */
    private Integer userDegree;
    /**
     * 技能等级
     */
    private Integer skillLevel;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    /**
     * 删除标识0-未删除 1-已删除
     */
    @TableLogic
    private Integer delFlag;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPic() {
        return userPic;
    }

    public void setUserPic(String userPic) {
        this.userPic = userPic;
    }

    public String getUserValidCard() {
        return userValidCard;
    }

    public void setUserValidCard(String userValidCard) {
        this.userValidCard = userValidCard;
    }

    public String getUserBirthdayCard() {
        return userBirthdayCard;
    }

    public void setUserBirthdayCard(String userBirthdayCard) {
        this.userBirthdayCard = userBirthdayCard;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getUserSignOrg() {
        return userSignOrg;
    }

    public void setUserSignOrg(String userSignOrg) {
        this.userSignOrg = userSignOrg;
    }

    public String getUserIdCard() {
        return userIdCard;
    }

    public void setUserIdCard(String userIdCard) {
        this.userIdCard = userIdCard;
    }

    public String getIdCardFront() {
        return idCardFront;
    }

    public void setIdCardFront(String idCardFront) {
        this.idCardFront = idCardFront;
    }

    public String getIdCardBack() {
        return idCardBack;
    }

    public void setIdCardBack(String idCardBack) {
        this.idCardBack = idCardBack;
    }

    public String getIdCardHandheld() {
        return idCardHandheld;
    }

    public void setIdCardHandheld(String idCardHandheld) {
        this.idCardHandheld = idCardHandheld;
    }

    public String getAreaId() {
        return areaId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getAddrDetails() {
        return addrDetails;
    }

    public void setAddrDetails(String addrDetails) {
        this.addrDetails = addrDetails;
    }

    public String getUserTrain() {
        return userTrain;
    }

    public void setUserTrain(String userTrain) {
        this.userTrain = userTrain;
    }

    public Integer getUserDegree() {
        return userDegree;
    }

    public void setUserDegree(Integer userDegree) {
        this.userDegree = userDegree;
    }

    public Integer getSkillLevel() {
        return skillLevel;
    }

    public void setSkillLevel(Integer skillLevel) {
        this.skillLevel = skillLevel;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String USER_NAME = "user_name";

    public static final String USER_PIC = "user_pic";

    public static final String USER_VALID_CARD = "user_valid_card";

    public static final String USER_BIRTHDAY_CARD = "user_birthday_card";

    public static final String AGE = "age";

    public static final String USER_SIGN_ORG = "user_sign_org";

    public static final String USER_ID_CARD = "user_id_card";

    public static final String ID_CARD_FRONT = "id_card_front";

    public static final String ID_CARD_BACK = "id_card_back";

    public static final String ID_CARD_HANDHELD = "id_card_handheld";

    public static final String AREA_ID = "area_id";

    public static final String AREA_NAME = "area_name";

    public static final String ADDR_DETAILS = "addr_details";

    public static final String USER_TRAIN = "user_train";

    public static final String USER_DEGREE = "user_degree";

    public static final String SKILL_LEVEL = "skill_level";

    public static final String CREATE_TIME = "create_time";

    public static final String DEL_FLAG = "del_flag";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AppUserDetails{" +
        "id=" + id +
        ", userId=" + userId +
        ", userName=" + userName +
        ", userPic=" + userPic +
        ", userValidCard=" + userValidCard +
        ", userBirthdayCard=" + userBirthdayCard +
        ", age=" + age +
        ", userSignOrg=" + userSignOrg +
        ", userIdCard=" + userIdCard +
        ", idCardFront=" + idCardFront +
        ", idCardBack=" + idCardBack +
        ", idCardHandheld=" + idCardHandheld +
        ", areaId=" + areaId +
        ", areaName=" + areaName +
        ", addrDetails=" + addrDetails +
        ", userTrain=" + userTrain +
        ", userDegree=" + userDegree +
        ", skillLevel=" + skillLevel +
        ", createTime=" + createTime +
        ", delFlag=" + delFlag +
        "}";
    }
}
